

import 'package:isar_community/isar.dart';

part 'cardio_fitness_result_model.g.dart';

@collection
class CardioFitnessResultModel {

  CardioFitnessResultModel({
    this.userId,
    this.fiveKMSpeed,
    this.tenKMSpeed,
    this.halfMarathonSpeed,
    this.marathonSpeed,
    this.fiveKMBestSpeed,
    this.tenKMBestSpeed,
    this.halfMarathonBestSpeed,
    this.marathonBestSpeed,
    this.isUpload,
    this.firmwareVersion,
    this.firmwareId,
    this.macAddress,
  });

  Id? id;

  /// 用户ID
  @Index()
  String? userId;

  int? fiveKMSpeed;
  int? tenKMSpeed;
  int? halfMarathonSpeed;
  int? marathonSpeed;
  int? fiveKMBestSpeed;
  int? tenKMBestSpeed;
  int? halfMarathonBestSpeed;
  int? marathonBestSpeed;
  bool? isUpload;
  //固件 id
  int? firmwareId;
  //固件版本
  String? firmwareVersion;

  @Index()
  String? macAddress;

}